import request from '@/utils/request';

export async function getEhsFileByPage (params: any) {
    return request('/api/device/getEhsFileByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addEhsFile (params: any) {
    return request('/api/device/addEhsFile', {
    method: 'POST',
    data: params,
  });
}

export async function updateEhsFile (params: any) {
    return request('/api/device/updateEhsFile', {
    method: 'POST',
    data: params,
  });
}

export async function delEhsFile (params: any) {
    return request('/api/device/delEhsFile', {
    method: 'POST',
    data: params,
  });
}


export async function exportEhsFile(params: any) {
    return request('/api/device/exportEhsFile', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getEhsFileByPage, addEhsFile, updateEhsFile, delEhsFile, exportEhsFile }
